<%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Automaty sprzedające - aplikacja zarządzająca</title>
<meta name="description"
	content="Mini Social is a free website template from templatemo.com" />
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/coda-slider.css" type="text/css"
	media="screen" charset="utf-8" />

<script src="js/jQuery.js" type="text/javascript"></script>
<script src="js/jquery.scrollTo-1.3.3.js" type="text/javascript"></script>
<script src="js/jquery.localscroll-1.2.5.js" type="text/javascript"
	charset="utf-8"></script>
<script src="js/jquery.serialScroll-1.2.1.js" type="text/javascript"
	charset="utf-8"></script>
<script src="js/coda-slider.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.easing.1.3.js" type="text/javascript"
	charset="utf-8"></script>

<%@ page import="engineer.clientapp.beans.User"%>
<%
	User user;
	String username;
	String status = null;
	if (session.getAttribute("user") != null) {
		user = (User) session.getAttribute("user");
		username = user.getName();

	} else {

		username = "Nieznany";
	}
%>

</head>
<body>

	<div id="slider">

		<div id="templatemo_sidebar">
			<div id="templatemo_header">
				<a href="index.jsp" rel="nofollow" target="_parent">Tu będzie logo</a>
			</div>
			<!-- end of header -->

			<ul class="navigation">
				<%
					if (session.getAttribute("user") == null) {
				%>
				<li><a href="index.jsp">Strona Główna<span class="ui_icon home"></span></a></li>
				<li><a href="index.jsp?page=login#page">Zaloguj<span
						class="ui_icon services"></span></a></li>
				<%
					} else {
				%>
				<li><a href="index.jsp">Strona Główna<span class="ui_icon home"></span></a></li>
				<li><a href="index.jsp?page=userPanel#page">Panel Użytkownika<span class="ui_icon aboutus"></span></a></li>
				<li><a href="index.jsp">Pokaż Automaty<span class="ui_icon services"></span></a></li>
				<li><a href="">Braki w Automatach<span class="ui_icon services"></span></a></li>
				<li><a href="#gallery">Wygeneruj Raporty<span 	class="ui_icon gallery"></span></a></li>
				<li><a href="#contactus">Kontakt<span class="ui_icon contactus"></span></a></li>
				

				<%
					}
				%>
			</ul>
		</div>
		<!-- end of sidebar -->

		<div id="templatemo_main">
    	<ul id="social_box">
    	<% if (session.getAttribute("user") == null) {%>
            <li><h2>Witaj, nieznajomy!<br><br> Aby korzystać z serwisu musisz się <a href="index.jsp?page=login" >zalogować.</a></h2></li>
   		<%}else{ %>
   			<li><h1>Witaj, <%=username %>!<br><br><html:form action="logout"><input type="submit" value="Wyloguj"/></html:form> </h1></li>
   		<%} %>
                            
        </ul>
        
        <div id="content">

				<!-- scroll -->


				<div class="scroll">

					<div class="scrollContainer">

						<div class="panel" id="home">
							<jsp:include page="/WEB-INF/change.jsp" />
						</div>
						<!-- end of home -->
					</div>
				</div>


			</div>

			<div id="templatemo_footer">

				Copyright © 2013 <a href="#">Wojciech Śliwa</a> | Designed by <a
					href="index.jsp" rel="nofollow" target="_parent">Wojciech
					Śliwa</a>

			</div>

		</div>
	</div>


	<script
		src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js'></script>
	<script type='text/javascript' src='js/logging.js'></script>
</body>
</html>